import request from '@/utils/request'

// 查询trainingWeek列表
export function listTrainingWeek(query) {
    return request({
        url: '/training/trainingWeek/list',
        method: 'get',
        params: query
    })
}
// 查询naturalYearTree
export function getNaturalYearTree(query) {
    return request({
        url: '/training/annualPlan/naturalYearTree',
        method: 'get',
        params: query
    })
}
//获取周期名称
export function listGetAnnualPlan(query) {
    return request({
        url: '/training/trainingWeek/getAnnualPlanList',
        method: 'get',
        params: query
    })
}


//获取用户名称
export function listGetSysUser(query) {
    return request({
        url: '/training/trainingWeek/getSysUerList',
        method: 'get',
        params: query
    })
}


// 查询trainingWeek详细
export function getTrainingWeek(id) {
    return request({
        url: '/training/trainingWeek/' + id,
        method: 'get'
    })
}


// 新增trainingWeek
export function addTrainingWeek(data) {
    return request({
        url: '/training/trainingWeek',
        method: 'post',
        data: data
    })
}

// 修改trainingWeek
export function updateTrainingWeek(data) {
    return request({
        url: '/training/trainingWeek',
        method: 'put',
        data: data
    })
}

// 删除trainingWeek
export function delTrainingWeek(id) {
    return request({
        url: '/training/trainingWeek/' + id,
        method: 'delete'
    })
}

// 导出trainingWeek
export function exportTrainingWeek(query) {
    return request({
        url: '/training/trainingWeek/export',
        method: 'get',
        params: query
    })
}
// 导入trainingWeek
export function importTrainingWeek(query) {
    return request({
        url: '/app/weekPlan/synchronizeData',
        method: 'get',
        params: query
    })
}